﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Model.Entities;

namespace Model.Mappings
{
    public partial class HRDS_NET_TOPOLOGY_Map : ClassMap<HRDS_NET_TOPOLOGY>
    {
        public HRDS_NET_TOPOLOGY_Map()
        {
            Table("HRDS_NET_TOPOLOGY");
            Id(x => x.GRIDDINGNETID)
                .Length(14);

            Map(x => x.MFID).Nullable().Length(14);
            Map(x => x.NAME).Nullable().Length(100);
            Map(x => x.ADDRESS).Not.Nullable().Length(80);
            Map(x => x.TOPOLOGYTYPE).Nullable().Length(2);
            Map(x => x.LONGITUDE).Not.Nullable().Precision(12).Scale(9);
            Map(x => x.LATITUDE).Not.Nullable().Precision(12).Scale(9);
            Map(x => x.REMARK).Not.Nullable().Length(512);
            Map(x => x.PARENTGRIDDINGNETID).Not.Nullable().Length(14);
            Map(x => x.DIAGRAM_NAME).Not.Nullable().Length(50);
            Map(x => x.DIAGRAM_XX).Not.Nullable().Length(50);
            Map(x => x.ATTACHSENSORID).Not.Nullable().Length(800);
            Map(x => x.EQNAMES).Not.Nullable().Length(800);
            Map(x => x.EQID).Not.Nullable().Length(800);
            DoEditableMappings();
        }
    }
}
